package cn.uce.cc.srv.biz.impl;

import cn.uce.cc.api.service.biz.ICcAgentCallBiz;
import cn.uce.cc.entity.CcAgentCall;
import cn.uce.cc.srv.service.CcAgentCallService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by zhaocan on 2018/5/23.
 */
@Service
@Transactional(readOnly = true, propagation= Propagation.SUPPORTS, rollbackFor = Exception.class)
public class CcAgentCallBiz implements ICcAgentCallBiz {
    @Resource
    private CcAgentCallService ccAgentCallService;
    @Override
    public List<Map<String, Object>> getSevenDayInfrushStatistics(CcAgentCall ccAgentCall) {
        return ccAgentCallService.getSevenDayInfrushStatistics(ccAgentCall);
    }

    @Override
    public List<Map<String, Object>> getAverageRingTime(CcAgentCall ccAgentCall) {
        return ccAgentCallService.getAverageRingTime(ccAgentCall);
    }
}
